package com.njlime.cms.entities;

import com.njlime.core.base.entities.BaseEntity;
import com.njlime.core.web.validation.annotation.Validate;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 实体类
 */
@Entity
@Table(name = "t_live_config")
public class LiveConfig extends BaseEntity{
    private Integer unit_id; // 单位id
    @Validate(description = "用户id", nullable = false)
    private String userid; // 用户id
    @Validate(description = "秘钥", nullable = false)
    private String secret; // 秘钥
    private Date create_time; // 创建时间
    private Integer is_del; // 是否删除

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getIs_del() {
        return is_del;
    }

    public void setIs_del(Integer is_del) {
        this.is_del = is_del;
    }
}